<template>
  <div class="container">
    <div style="border-bottom:1px solid #ccc;padding-bottom:50px">
      <div class="card_title">
        <img src="~@/assets/report/first/fuwu.png" />
        <span>服务方案</span>
      </div>
      <div class="card_nd_title">
        <span>{{ report.serviceName }}</span>
        <div class="line" :style="'width:' + report.serviceName.length * 16 + 'px;'"></div>
        <p style="margin-top:10px" v-if="report.servicePeriod">服务周期：{{ report.servicePeriod }}</p>
      </div>
      <div class="card_content">
        <div class="content">
          <div>
            <img src="~@/assets/report/first/shenghuo.png" />
            <span class="title">生活方式方案</span>
          </div>
          <p>{{ report.lifePlan || '无' }}</p>
        </div>
        <div class="content">
          <div>
            <img src="~@/assets/report/first/yinshi2.png" />
            <span class="title">饮食方案</span>
          </div>
          <p>{{ report.dietPlan || '无' }}</p>
        </div>
        <div class="content">
          <div>
            <img src="~@/assets/report/first/yongyao.png" />
            <span class="title">用药方案</span>
          </div>
          <p>{{ report.drugPlan || '无' }}</p>
        </div>
        <div class="content">
          <div>
            <img src="~@/assets/report/first/yundong.png" />
            <span class="title">运动方案</span>
          </div>
          <p>{{ report.sportPlan || '无' }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ServiceProgramme',
  props: ['report'],
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>
// /deep/ .ant-descriptions-item-label {
//   width: 25% !important;
// }
// /deep/ .ant-descriptions-item-content {
//   width: 75% !important;
// }
@media print {
  .container {
    page-break-after: always;
  }
}
.container {
  padding: 50px 24px 0 24px;
}
.card_title {
  display: flex;
  align-items: center;
  img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
  }
  span {
    font-size: 20px;
    font-weight: bold;
    color: #000;
  }
}
.card_nd_title {
  margin-top: 50px;
  span {
    font-size: 16px;
    // padding-left: 10px;
    font-weight: bold;
    color: #000;
  }
}
.line {
  height: 6px;
  border-radius: 6px;
  // margin-left: 10px;
  background-color: #00b5d4;
  opacity: 0.3;
}
.card_content {
  margin-left: 30px;
}
.content {
  div {
    display: flex;
    align-items: center;
    margin-top: 30px;
    .title {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 0;
      margin-right: 50px;
    }
    img {
      width: 25px;
      height: 25px;
      margin-right: 10px;
    }
  }
  p {
    margin-top: 10px;
  }
}
</style>

